package com.ttg.model.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ttg.common.entities.BasePage;
import com.ttg.model.dto.QMReportDTO;
import com.ttg.model.pojo.QualityManageMerchReport;
import com.ttg.model.vo.QMMerchReportVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (TblQualityManageMerchReport) mapper
 *
 * @author chenyou
 * @datetime 2025-08-18 14:50:36
 */
@Mapper
public interface QualityManageMerchReportMapper extends BaseMapper<QualityManageMerchReport>{

     boolean deleteByMonthAndMctNos(@Param("year") String year, @Param("month") String month, @Param("mctNos") List<String> mctNos);

     List<QualityManageMerchReport> selectExistByMultiFields(@Param("list") List<QualityManageMerchReport> list);

     BasePage<QMMerchReportVO> report(BasePage page, @Param("dto") QMReportDTO reqDto);

     List<String> selectYears();

     List<String> selectMonths(@Param("year") String year);
}

